package com.woniuxy.microcurrentserver.dao;

import com.woniuxy.microcurrentserver.entity.CurrentFundAll;
import com.woniuxy.microcurrentserver.entity.CurrentFundHistory;
import com.woniuxy.microcurrentserver.entity.CurrentFundInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (CurrentFundAll)表数据库访问层
 *
 * @author makejava
 * @since 2021-04-08 11:29:25
 */
@Mapper
public interface CurrentFundAllDao {

    /**
     * 通过主键删除数据
     *
     * @return 影响行数
     */
    List<CurrentFundAll> selectAllByType(String name);

    int insertAll(List<CurrentFundAll> list);

    int insertInfo(CurrentFundInfo data);

    int insertMillionCopiesIncome(@Param("millionCopiesIncome") List<CurrentFundHistory> millionCopiesIncome);

    int insertSevendaysyearincome(@Param("sevenDaysYearIncome") List<CurrentFundHistory> sevenDaysYearIncome);

    List<String> selectAllCode();

    int updateAll(CurrentFundInfo data);

    Integer enterDate(String date);


    int insertNewMillion( CurrentFundHistory millionCopiesIncomeData);

    int updateNewSeven( CurrentFundHistory sevenDaysYearIncomeData);

    Integer checkCode(@Param("code") String code);
}

